<template>
	<!-- 小程序打开webview参考链接http://www.taodudu.cc/news/show-6294607.html?action=onClick -->
	<view>
		<web-view :src="curl"></web-view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				curl: ''
			}
		},
		onLoad(options) {
			console.log('webview', options)
			let _title = '隐私政策'
			console.log('传递过来', options)
			if (options.title === '服务协议') {
				_title = '服务协议'
			}
			this.curl = options.url
			uni.setNavigationBarTitle({
				title: _title
			});
		},
		methods: {

		}
	}
</script>